/*
 * @Description: 文件描述
 * @Author: 陈三愿
 * @Date: 2025-09-14 20:08:00
 * @LastEditTime: 2025-09-15 00:57:39
 */
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./app/components/**/*.{js,vue,ts}",
    "./app/layouts/**/*.vue",
    "./app/pages/**/*.vue",
    "./app/plugins/**/*.{js,ts}",
    "./app/App.vue",
    "./app/error.vue",
    // Nuxt 4 特定路径
    "./nuxt.config.{js,ts}",
    "./app.vue",
  ],
  theme: {
    extend: {
      // 扩展自定义颜色
      colors: {
        // 语义化颜色
        semantic: {
          background: {
            default: "#f3f4f6",
            paper: "#ffffff",
            contrast: "#2A303C",
          },
          text: {
            primary: "#1f2937",
            secondary: "#4b5563",
            disabled: "#9ca3af",
            inverse: "#f9fafb",
          },
          border: {
            default: "#e5e7eb",
            strong: "#d1d5db",
            focus: "#2563eb",
          },
          status: {
            success: "#00ff00",
            warning: "#f97316",
            error: "#ff0000",
            info: "#d1d5db",
          },
        },
        // 添加品牌色
        brand: {
          50: "#eff6ff",
          100: "#dbeafe",
          200: "#bfdbfe",
          300: "#93c5fd",
          400: "#60a5fa",
          500: "#3b82f6",
          600: "#2563eb", // 与您的 ywz-theme primary 一致
          700: "#1d4ed8",
          800: "#1e40af",
          900: "#1e3a8a",
        },
        // 添加自定义文本颜色
        text: {
          primary: "#1f2937",
          secondary: "#4b5563",
          tertiary: "#6b7280",
          success: "#00ff00",
          warning: "#f97316",
          error: "#ff0000",
        },
      },
    },
  },
  plugins: [require("daisyui")],
  daisyui: {
    themes: [
      {
        light: {
          primary: "#409eff",
          secondary: "#f000b8",
          accent: "#37cdbe",
          neutral: "#3d4451",
          "base-100": "#ffffff",
        },
      },
      {
        dark: {
          primary: "#409eff",
          secondary: "#D926AA",
          accent: "#1FB2A5",
          neutral: "#191D24",
          "base-100": "#2A303C",
        },
      },
      {
        "ywz-theme": {
          primary: "#2563eb",

          secondary: "#16a34a",

          accent: "#00ffff",

          neutral: "#6b7280",

          "base-100": "#f3f4f6",

          info: "#d1d5db",

          success: "#00ff00",

          warning: "#f97316",

          error: "#ff0000",
        },
      },
    ],
    darkTheme: "dark",
  },
};
